package com.toro.dao;

/**
 * @ClassName: UserDao
 * @Description:
 * @Author: ToroLHZ
 * @Date: 2023/12/17 14:37
 */
public interface UserDao {
    /**
     * @Description: 通过用户名获取用户id
     * @Param: [username]
     * @Return: int
     * @Author: ToroLHZ
     * @Date: 2023/12/17 14:40
     **/
    int getUserIdByUsername(String username);

    /**
     * @Description:
     * @Param: [username, password]
     * @Return: boolean
     * @Author: ToroLHZ
     * @Date: 2023/12/17 14:41
     **/
    boolean getUser(String username, String password);
    /**
     * @Description: 通过用户id获取用户名
     * @Param: [userId]
     * @Return: java.lang.String
     * @Author: ToroLHZ
     * @Date:  2023/12/24 16:45
     **/
    String getUserNameByUserId(int userId);
}
